Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setFileName() to DownloadResponse #2129

Merged
merged 3 commits into from
Aug 13, 2019

Conversation

MGatner
Copy link
Member

@MGatner MGatner commented Aug 12, 2019

Description
Currently an HTTP Response created with download() can take either a path or data with a filename, but when the path option is used the filename is set to the actual local file. This adds a setter to the DownloadResponse so a developer can supply a new name for the file on download.

Checklist:

  • Securely signed commits
  • Component(s) with PHPdocs
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@lonnieezell
Copy link
Member

Needs doc update and we're good to go.

@MGatner
Copy link
Member Author

MGatner commented Aug 12, 2019

Supplied!

@lonnieezell lonnieezell merged commit d2f2ada into codeigniter4:develop Aug 13, 2019
@MGatner MGatner deleted the download-setfilename branch August 13, 2019 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants